package com.sjd.farm.service.impl;

import com.sjd.farm.domain.SjdFarmLandChange;
import com.sjd.farm.mapper.SjdFarmLandChangeMapper;
import com.sjd.farm.service.ISjdFarmLandChangeService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 农场土地信息变更Service业务层处理
 *
 * @author joker
 * @date 2022-01-24
 */
@Service
@AllArgsConstructor
public class SjdFarmLandChangeServiceImpl implements ISjdFarmLandChangeService {
    private final SjdFarmLandChangeMapper sjdFarmLandChangeMapper;

    /**
     * 查询农场土地信息变更列表
     *
     * @param sjdFarmLandChange 农场土地信息变更
     * @return 农场土地信息变更
     */
    @Override
    public List<SjdFarmLandChange> selectSjdFarmLandChangeList(SjdFarmLandChange sjdFarmLandChange) {
        return sjdFarmLandChangeMapper.selectSjdFarmLandChangeList(sjdFarmLandChange);
    }

    /**
     * 新增农场土地信息变更
     *
     * @param sjdFarmLandChange 农场土地信息变更
     */
    @Override
    public void insertSjdFarmLandChange(SjdFarmLandChange sjdFarmLandChange) {
        sjdFarmLandChangeMapper.insertSjdFarmLandChange(sjdFarmLandChange);
    }
}
